package com.moefor.clover.dao;

import java.util.Set;

import com.moefor.clover.model.Order;
import com.moefor.clover.model.enums.StateOfOrder;

public interface OrderDao extends BaseDao<Order>{
	public Order get(int goodsId, int userId);
	public Set<Order> getByCustomer(int customerId, StateOfOrder state);
	public Set<Order> getByOwner(int ownerId, StateOfOrder state);
	public int updStateByGoods(int goodsId, StateOfOrder state);
}
